package cn.jw.framework.test.swagger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.jw.framework.test.swagger.model.Request1;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * <p>
 * // TODO
 * </p>
 *
 * @author 王广帅
 * @since 2024/4/8 10:37
 **/
@Tag(name = "Swagger1接口")
@RestController
@RequestMapping("swagger1")
public class Swagger1Controller {
    private Logger logger = LoggerFactory.getLogger(Swagger1Controller.class);

    @PostMapping("test1")
    public String request1(@RequestBody Request1 request1) {
        logger.info("aaaaaaaaaa");
        return "成功了:" + request1.toString();
    }

    @PostMapping("test2")
    public void request2(@RequestBody Request1 request1) {

    }
}
